package com.yugu.park.system.mapper;

import com.yugu.park.system.entity.SysRoleEntity;
import com.yugu.park.system.entity.SysUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 用户信息表
 *
 * @author guxf
 * @email sjzyug@163.com
 * @date 2023-08-17 15:04:06
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUserEntity> {
	List<SysUserEntity> page(@Param("info") SysUserEntity search);
	/**
	 * 批量增加用户角色表
	 * @param userId
	 * @param roleIds
	 */
	void batchUserAndRole(@Param("info")SysUserEntity info, @Param("roles")List<SysRoleEntity> roles);
	/**
	 * 删除
	 * 
	 * @param userId
	 */
	void deleteUserAndRoleByUserId(@Param("userId")String userId);
}
